define([], function () {
    require.config({
    paths: {
        'ueditor': '../addons/ueditor/umeditor.config'
    },
    shim: {
        'ueditor': ['../addons/ueditor/umeditor', 'css!../addons/ueditor/themes/default/css/umeditor.css'],
    }
});
require(['form', 'upload'], function (Form, Upload) {
    var _bindevent = Form.events.bindevent;
    Form.events.bindevent = function (form) {
        _bindevent.apply(this, [form]);
        try {
            //绑定summernote事件
            if ($(".ueditor,.editor", form).size() > 0) {
                require(['ueditor'], function () {
                    UM.getEditor('container', {
                        initialFrameWidth: 600,
                        initialFrameHeight: 500
                    });
                });
            }
        } catch (e) {

        }

    };
});

});